package com.sinoglobal.ningxia.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * @author qiwx
 * @createdate 2014-6-23 下午1:18:52
 * @Description: 节目单Fragment
 */
public class PlayBillFragmentAdapter extends FragmentPagerAdapter {
    private List<Fragment> lists;

    public PlayBillFragmentAdapter(FragmentManager fm) {
        super(fm);

    }

    public void setLists(List<Fragment> lists) {
        this.lists = lists;
    }

    @Override
    public Fragment getItem(int id) {
        return lists.get(id);
    }

    @Override
    public int getCount() {
        return lists.size();
    }

}
